package com.chuangsi.project.admin.dto.admin.order;

import com.chuangsi.project.admin.dto.app.order.FileDto;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author wangshengming
 * @date 2023/3/27
 */
@Data
public class ResOrderDetailDto {

    @ApiModelProperty(value = "订单id")
    private String orderId;

    @ApiModelProperty(value = "订单编号")
    private String orderNo;

    @ApiModelProperty(value = "客户名称")
    private String customName;

    @ApiModelProperty(value = "客户联系方式")
    private String customPhone;

    @ApiModelProperty(value = "客户身份证号")
    private String customIdCard;

    @ApiModelProperty(value = "车架号")
    private String vin;

    @ApiModelProperty(value = "发动机号")
    private String engineNo;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "用户名称")
    private String nickName;

    @ApiModelProperty(value = "新车发票价格")
    private String carInvoicePrice;

    @ApiModelProperty(value = "销售金额")
    private BigDecimal money;

    @ApiModelProperty(value = "产品类型（1.原厂代销，2.其他代销，3.传统）")
    private String type;

    @ApiModelProperty(value = "支付类型（1.全款，2.分期）")
    private String payType;

    @ApiModelProperty(value = "是否E签宝合同（Y:是 N:否）")
    private String esignContract;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "是否自己购买（1.是  2否）")
    private String ourselfBuy = "-";

    @ApiModelProperty(value = "当前用户是否可以审批（1.是，2.否）")
    private String isMy;

    @ApiModelProperty(value = "审核情况")
    private List<ResAppStatusListDto> appList;

    @ApiModelProperty(value = "附件")
    private List<FileDto> fileList;

    @ApiModelProperty(value = "订单备注")
    private String remark;

    @ApiModelProperty(value = "审核状态（1.待审核，2.通过，3.已驳回，4.申请退保，5.已退保 6.退保驳回）")
    private String appStatus;
}
